"""
@name : 题1
@author : smm
@projectname: YI BO
"""

# lst = ['a','1','bb','234','','9']
# 使用reduce 取出lst里的数字  --》 12349
from functools import reduce
lst = ['a', '1', 'bb', '234', '', '9']
def num(x, y):
    if x.isdigit() and y.isdigit():
        return x + y
    elif x.isdigit():
        return x
    elif y.isdigit():
        return y

result = reduce(num, lst)
print(result)